import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '姓名',
    align: "center",
    dataIndex: 'lastName'
  },
  {
    title: '性别',
    align: "center",
    dataIndex: 'gender_dictText'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '车牌号',
    align: "center",
    dataIndex: 'carNo'
  },
  {
    title: '产品套餐',
    align: "center",
    dataIndex: 'productId_dictText'
  },
  {
    title: '销售人员',
    align: "center",
    dataIndex: 'salesManId_dictText'
  },
  {
    title: '安装订单',
    align: "center",
    dataIndex: 'installOrderId_dictText'
  },
  {
    title: '订单状态 ',
    align: "center",
    dataIndex: 'status_dictText'
  },
  {
    title: '创建时间',
    align: "center",
    sorter: true,
    dataIndex: 'createTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  lastName: {title: '姓名',order: 0,view: 'text', type: 'string',},
  gender: {title: '性别',order: 1,view: 'number', type: 'number',dictCode: 'sex',},
  phone: {title: '手机号',order: 2,view: 'text', type: 'string',},
  carNo: {title: '车牌号',order: 3,view: 'text', type: 'string',},
  productId: {title: '产品套餐',order: 4,view: 'sel_search', type: 'string',dictTable: "base_product", dictCode: 'id', dictText: 'product_name',},
  salesManId: {title: '销售人员',order: 5,view: 'sel_search', type: 'string',dictTable: "base_user", dictCode: 'id', dictText: 'real_name',},
  installOrderId: {title: '安装订单',order: 6,view: 'sel_search', type: 'string',dictTable: "base_install_order", dictCode: 'id', dictText: 'id',},
  status: {title: '订单状态 ',order: 7,view: 'number', type: 'number',dictCode: 'dict_sale_order_status',},
  createTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',},
};
